/**
 *
 * Copyright (C) 2008  Igor Vdovichenko
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * Though a sincere effort has been made to deliver a professional,
 * quality product,the library itself is distributed WITHOUT ANY WARRANTY;
 * See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 */
package com.vin.scriptutils.utils.ssh.trilead;

import com.vin.scriptutils.utils.ssh.SshTaskResult;
import java.io.IOException;
import java.io.InputStream;

/**
 *
 * @author igor
 */
public class TrileadSshTaskResult implements SshTaskResult {

    private Integer exitStatus;
    private InputStream outputStream;
    private InputStream errorStream;

    public TrileadSshTaskResult(Integer exitStatus, InputStream outputStream, InputStream errorStream) {
        this.exitStatus = exitStatus;
        this.outputStream = outputStream;
        this.errorStream = errorStream;
    }

    @Override
    public Integer getExitStatus() {
        return exitStatus;
    }

    public void setExitStatus(Integer exitStatus) {
        this.exitStatus = exitStatus;
    }

    @Override
    public InputStream getOutputStream() throws IOException {
        return outputStream;
    }

    public void setOutputStream(InputStream outputStream) {
        this.outputStream = outputStream;
    }

    @Override
    public InputStream getErrorStream() throws IOException {
        return errorStream;
    }

    public void setErrorStream(InputStream errorStream) {
        this.errorStream = errorStream;
    }
}
